﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Guide : MonoBehaviour
{
    bool CanNext = true;

    public void Start()
    {
        Invoke("Go",2);
    }

    void Go()
    {
        Next();
    }

    public void GuidePlay(GameObject g,string text)
    {
        gameObject.GetComponent<GuideManagers>().guideList.Add(new GuideUIList(g,text));
    }

    void Change()
    {
        CanNext = true;
    }

    public void Next()
    {
       gameObject.GetComponent<GuideManagers>().Next();
    }
}
